	// use script only if javascript is availible
	document.getElementById("questions").className = "questions";

	var offset = 0;

// set first number as main
	document.getElementById("cell1").className = "current";

// when back is clicked, change the highlighted number and slide to previous question
	document.getElementById("prev").onclick = function() {
		document.getElementById("cell" + (offset+1)).className = "";
		offset -= 1;
		if(offset < 0) offset = 0;
		document.getElementById("normal").style.marginLeft = offset*(-700)+"px";
		document.getElementById("cell" + (offset+1)).className = "current";

	};

// when next is clicked, change the highlighted number and slide to next question
	document.getElementById("next").onclick = function() {
		document.getElementById("cell" + (offset+1)).className = "";
		offset += 1;
		if(offset > 9) offset = 9;
		document.getElementById("normal").style.marginLeft = offset*(-700)+"px";
		document.getElementById("cell" + (offset+1)).className = "current";
	};


